package cn.wolfcode.shop.cloud.util;

import cn.wolfcode.shop.key.KeyPrefix;

public class MemberKeyPrefix implements KeyPrefix {

    private int expireTime;
    private String prefix;

    @Override
    public int getExpireTime() {
        return expireTime;
    }

    @Override
    public String getKeyPrefix() {
        return prefix;
    }

    public MemberKeyPrefix(int expireTime, String prefix) {
        this.expireTime = expireTime;
        this.prefix = prefix;
    }

    public static final MemberKeyPrefix USER_TOKEN = new MemberKeyPrefix(1800,"usertoken:");

}
